SpreadsheetGear 2012
OpenFromMemory(Byte[],String) Method






The buffer to open the workbook from.
The password to use when opening the workbook.
Open an existing workbook in a newly created instance of IWorkbook.
Syntax
'Declaration
 
Overloads Function OpenFromMemory( _
   ByVal buffer() As System.Byte, _
   ByVal password As System.String _
) As IWorkbook
'Usage
 
Dim instance As IWorkbooks
Dim buffer() As System.Byte
Dim password As System.String
Dim value As IWorkbook
 
value = instance.OpenFromMemory(buffer, password)
IWorkbook OpenFromMemory( 
   System.byte[] buffer,
   System.string password
)
function OpenFromMemory( 
    buffer: System.Bytearray of;
    password: System.String
): IWorkbook; 
function OpenFromMemory( 
   buffer : System.byte[],
   password : System.String
) : IWorkbook;
IWorkbook* OpenFromMemory( 
   System.byte[]* buffer,
   System.string* password
) 
IWorkbook^ OpenFromMemory( 
   System.array<byte>^ buffer,
   System.String^ password
) 

Parameters

buffer
The buffer to open the workbook from.
password
The password to use when opening the workbook.

Return Value

The opened workbook.
Remarks
The various workbook settings which make a workbook read-only in an end user workbookSet have no affect at this level. These settings are available as IWorkbook properties.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IWorkbooks Interface
IWorkbooks Members
Overload List
OpenFromMemory(Byte[]) Method
Save Method
SaveAs(String,FileFormat,String) Method
SaveToMemory(FileFormat,String) Method
SaveToStream(Stream,FileFormat,String) Method
Open(String,String) Method
OpenFromStream(Stream,String) Method

Send Feedback